#include "ProxyServerToWorldModule.h"
#include "ProxyServerNetClientPlugin.h"
#include "ProxyServerToGameModule.h"

using namespace FragrantGrass;

#ifdef FG_DYNAMIC_PLUGIN

FG_EXPORT void DllStartPlugin(IPluginManager* pm)
{
    CREATE_PLUGIN(pm, ProxyServerNetClientPlugin)

};

FG_EXPORT void DllStopPlugin(IPluginManager* pm)
{
    DESTROY_PLUGIN(pm, ProxyServerNetClientPlugin)
};

#endif
//////////////////////////////////////////////////////////////////////////

const int FragrantGrass::ProxyServerNetClientPlugin::GetPluginVersion()
{
    return 0;
}

const std::string FragrantGrass::ProxyServerNetClientPlugin::GetPluginName()
{
	return GET_CLASS_NAME(ProxyServerNetClientPlugin);
}

void FragrantGrass::ProxyServerNetClientPlugin::Install()
{
    REGISTER_MODULE(m_pPluginManager, IProxyServerToWorldModule, ProxyServerToWorldModule)
    REGISTER_MODULE(m_pPluginManager, IProxyServerToGameModule, ProxyServerToGameModule)
}

void FragrantGrass::ProxyServerNetClientPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pPluginManager, IProxyServerToGameModule, ProxyServerToGameModule)
    UNREGISTER_MODULE(m_pPluginManager, IProxyServerToWorldModule, ProxyServerToWorldModule)
}